from tkinter import*

w=PanedWindow(orient=VERTICAL)
w.pack(fill=BOTH,expand=1)

top=Label(w,text="hhhh")
w.add(top)

bottom=Label(w,text="lollol")
w.add(bottom)

mainloop()